<?php global $ubi?>
<div id="comment_content<?php echo $com->getCommentID()?>" style="float:left">
    <div class="date">
    	<?php echo date('d/m/Y H:i:s', $com->getCreatedDate()) ?>
    </div>
    <p>
        <?php echo $com->getMessage();?>
	</p>
	<div class="comment_like_dislike">
		<?php
			if ($com->getPositiveRate() > 0) { 
				echo $com->getPositiveRate() . 'người thích';
				echo '<br />';
			}
		?> 
		<?php
			if ($com->getNegativeRate() > 0) { 
				echo $com->getNegativeRate() . 'người không thích';
				echo '<br />';
			} 
		?>
	</div>
	<div class="comment_like_dislike">
		<?php
			if ($ratingValues[$com->getCommentID()] == $ubi['RATING']['PLUS']) {
				echo 'Bạn thích comment này';
			} else if ($ratingValues[$com->getCommentID()] == $ubi['RATING']['MINUS']) {
				echo 'Bạn không thích comment này';
			}
		?>  
	</div>
</div>
<div class="comment_icons">
	<?php
		if (isset($_SESSION['userid']) && $_SESSION['userid'] && $ratingValues[$com->getCommentID()] != 1) { 
	?>
		<a class="a_cursor" onclick="$.plusComment(<?php echo $com->getCommentID()?>)" title="Thích">
			<img src="include/images/icons/circle-love.png" width="24px" />
		</a>
	<?php
		} 
	?>
	
	<?php
		if (isset($_SESSION['userid']) && $_SESSION['userid'] && $ratingValues[$com->getCommentID()] != -1) { 
	?>
		<a class="a_cursor" title="Không thích" onclick="$.minusComment('<?php echo $com->getCommentID()?>')">
			<img src="include/images/icons/circle-minus.png" width="24px" />
		</a>
	<?php
		} 
	?>
</div>